package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xxx.enums.StatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * ;
 * @author : http://www.chiner.pro
 * @date : 2024-11-9
 */
 @Data
 @AllArgsConstructor
 @NoArgsConstructor
public class Comment implements Serializable,Cloneable{
    /**  */
    @TableId(type = IdType.AUTO)
    private Long id ;
    /** 姓名 */
    private String name ;
    /** 评论 */
    private String comment ;

    private String email;
    /** 图片路径 */
    private String img ;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;
    /** 0否 1是 */
    @TableLogic
    private Integer deleted ;
    /** 0启用 1禁用 */
    private StatusEnum status ;

    /** 语言类型**/
    @TableField(select = false)
    private String language;

}